// ++++++++++++++++++++++++++++++++++++++++
// 《零基础Go语言算法实战》源码
// ++++++++++++++++++++++++++++++++++++++++
// Author:廖显东（ShirDon）
// Blog:https://www.shirdon.com/
// Gitee:https://gitee.com/shirdonl/goAlgorithms.git
// Buy link :https://item.jd.com/14101229.html
// ++++++++++++++++++++++++++++++++++++++++

package main

import "fmt"

type Test struct {
	array []int
	str   string
}

func asign(t Test) {
	t.array[0] = 88
	t.str = "Go is good"
}

func main() {
	var t = Test{
		array: []int{66, 6, 88},
		str:   "I Love Go",
	}
	asign(t)
	fmt.Println(t.array[0])
	fmt.Println(t.str)
}

//$ go run interview1-29.go
//88
//I Love Go
